<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>编辑角色</title>
<link href="/widget/bootstrap/3.3.7/css/bootstrap.css" rel="stylesheet"  type="text/css"/>
 {cssjs}
<link href="/res/css/inside_page.css" rel="stylesheet"  type="text/css"/>
</head>

<body>
<div class="container-fluid larry-wrapper">
    <div class="row">
        <div class="col-xs-12 col-sm-12 col-md-12">
            <section class="panel panel-padding">
                <form id="form1" class="layui-form layui-form-pane" method="post" data-dotype="a" action="/html/system/srv/edit_role.php">
                        <div class="layui-form-item">
                            <label class="layui-form-label">角色名称</label>
                            <div class="layui-input-block">
                                <input type="text" placeholder="角色名称" id="rolename" value="{rolename}" name="rolename" autocomplete="off" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">角色类型</label>
                            <div class="layui-input-block">
                                <select name="depttype" id="depttype">
                                    <option value=""></option>
                                </select>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">选择机构</label>
                            <div class="layui-input-block">
                                <select name="mech" id="mech">
                                    <option value=""></option>
                                </select>
                            </div>
                        </div>
                        <div class="layui-form-item" pane>
                            <label class="layui-form-label">状态</label>
                            <div class="layui-input-block">
                                 <input type="radio" name="flag" id="flag" title="启用" value="0" checked="checked" />
                                 <input type="radio" name="flag" id="flag" title="禁用" value="1" />
                            </div>
                        </div>

                        <div class="layui-form-item">
                            <div class="layui-input-block">
                                <input type="text" id="id" name="id" value="{id}" style="display:none;"/>
                                <input type="text" id="stype" name="stype" value="{stype}" style="display:none;"/>
                                <input type="text" id="smech" name="smech" value="{smech}" style="display:none;"/>
                                <button class="layui-btn" id="btn_save"/>立即提交</button>
                                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                            </div>
                        </div>
                    </form>
            </section>
        </div>
    </div>
</div>
    {jsmodel}
   <script type="text/javascript">
        layui.use('system_edit_role');
        var fg={fg};
        if(fg==1){
            $(":radio[name='flag'][value='1']").prop("checked", "checked");
        }else{
            $(":radio[name='flag'][value='0']").prop("checked", "checked");
        }
    </script>
</body>
</html>